﻿CREATE TABLE [dbo].[UserRoles]
(
    [Role]			[VARCHAR](128)	NOT NULL,
    [UserId]		[BIGINT]		NOT NULL,
    [CreatedAt]		[DATETIME]		NOT NULL,
    CONSTRAINT [PK_UserRole] PRIMARY KEY ([Role], [UserId]),
    CONSTRAINT [FK_UserRole_Users] FOREIGN KEY ([UserId]) REFERENCES [dbo].[Users](Id)
)
